home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / print < prev    next >
Encoding:
Text File  |  1988-04-08  |  1.3 KB  |  59 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *        print.h
  10.  */
  11.  
  12. #define    NO_PRINT            16 
  13. #define    TERM_ONLY            17
  14. #define    LOG_ONLY            18
  15. #define    TERM_AND_LOG        19
  16. #define    PSEUDO                20
  17. #define    NEW_STRING            21
  18. #define    MAX_SELECTOR        21
  19.  
  20. global    alpha_file        log_file;
  21.  
  22. global    int            selector;
  23.  
  24. global    int            term_offset;
  25. global    int            file_offset;
  26.  
  27. global    char        dig[];
  28. global    val            tally;
  29. global    ascii        trick_buf[];
  30. global    val            trick_count;
  31. global    val            first_count;
  32.  
  33. int        print();
  34. int        print_char();
  35. int        print_sym();
  36. int        print_ln();
  37. int        print_esc();
  38. int        print_nl();
  39. int        print_the_digs();
  40. int        print_int();
  41. int        print_val();
  42. int        print_hex();
  43. int        print_ASCII();
  44. int        print_roman_int();
  45. int        print_current_string();
  46.  
  47. #define    wterm(c)        putchar(c);
  48. #define    wterm_ln(c)        {putchar(c); putchar('\n');}
  49. #define    wterm_cr()        putchar('\n');
  50.  
  51. #define    wlog(c)            putc(c, log_file)
  52. #define    wlog_ln(c)        {putc(c, log_file); putc('\n', log_file);}
  53. #define    wlog_cr()        putc('\n', log_file);
  54.  
  55. #define    wfile(c)        putc(c, write_file[selector])
  56. #define    wfile_ln(c)        {putc(c, write_file[selector]); \
  57.                         putc('\n', write_file[selector]);}
  58. #define    wfile_cr()        putc('\n', write_file[selector]);
  59.